package com.yanxin.credit.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yanxin.credit.entity.MemberCreditRecord;
import com.yanxin.credit.mapper.MemberCreditRecordMapper;
import com.yanxin.credit.service.IMemberCreditRecordService;
import org.springframework.stereotype.Service;

/**
 * @program spring-cloud-example
 * @description:
 * @author: LiuYanXin
 * @create: 2022-02-08 18:38
 */
@Service
public class MemberCreditRecordServiceImpl extends ServiceImpl<MemberCreditRecordMapper, MemberCreditRecord> implements IMemberCreditRecordService {

    private MemberCreditRecordMapper memberCreditRecordMapper;

    public MemberCreditRecordServiceImpl(MemberCreditRecordMapper memberCreditRecordMapper) {
        this.memberCreditRecordMapper = memberCreditRecordMapper;
    }

    @Override
    public int insertMemberCreditRecord(MemberCreditRecord record) {
        return memberCreditRecordMapper.insert(record);
    }
}
